 {include file="public/header" /}
 <style type="text/css">.gray-bg{ background: #fff; }.wrapper{ padding:0px;}.asdh5 h5{border-top: 1px dotted #ccc; padding-top: 20px;margin-top: 20px;}</style>
 <body class="gray-bg">
 <div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12" {php}if(input("id")==1){echo 'style="display:none"';}{/php}>
                <div class="ibox-content asdh5">
                    <h2>分类设置</h2>
                    <h3 style="color: #f40;margin-bottom:20px;">
                        1：选择单个分类下的子分类，若跨分类选择则最后一个顶级分类为主分类<br />
                        2：若无相关分类可快速添加<br />
                    </h3>
                    <a onClick="add('{:url('addcategory',['url'=>-1])}')" href="javascript:void(0);" class="btn btn-primary ">添加一级分类</a>
                    <div class="wrapper-content">
                        {$dymanic_category}
                    </div>
                </div>

            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
$(document).ready(function(){
     $(".i-checks").iCheck({
        checkboxClass: "icheckbox_square-green",
        radioClass: "iradio_square-green",
    })

});
</script>
<script type="text/javascript">

    function add(url)
    {
        layer.open({
            type: 2,
            title: '添加下级分类',
            shadeClose: false,
            shade: 0.2,
            area: ['60%', '60%'],
            skin:'shangchuantup',
            shift:-1,
            content: url,
            scrollbar: false,
            moveType: 1,
            moveOut: true
        });
    }

</script>
{include file="public/bottom" /}
 
